﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="black_list" data-title="黑名单" data-lang="<%=ContentLang%>">
	<div class="path1"><span>您的位置：</span>黑名单</div>
	<div class="ali-tabs sub-nav" data-height-style="fill" data-event="click">
		<div class="ali-tabs-header">
			<div class="ali-tabs-nav-container">
				<ul>
					<li><a href="basic.aspx?Lang=<%=ContentLang%>" target="ali-navtab">基本设置</a></li>
					<li><a href="email.aspx?Lang=<%=ContentLang%>" target="ali-navtab">邮件设置</a></li>
					<li><a href="water_mark.aspx?Lang=<%=ContentLang%>" target="ali-navtab">水印设置</a></li>
					<li><a href="white_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">白名单</a></li>
					<li class="ali-active"><a>黑名单</a></li>
					<li><a href="keyword_filter.aspx?Lang=<%=ContentLang%>" target="ali-navtab">关键词过滤</a></li>
					<li><a href="global.aspx?Lang=<%=ContentLang%>" target="ali-navtab">全局设置</a></li>
				</ul>				
			</div>
		</div>
		<div class="ali-tabs-body">
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel"></div>
			<div class="ali-tabs-panel">
				<form action="" class="search1" style="display:none"><button type="submit" class="ali-button">搜索</button></form>
				<form action="" class="add1">
					类型：<select name="Type"><option value="Domain">域名</option><option value="IP">IP</option><option value="UserName">用户名</option><option value="UserAgent">用户代理</option></select>
					取值：<input name="Value" maxlength="50" class="ali-input">
					错误号码：<input name="ErrorCode" value="200" size="6" maxlength="10" class="ali-input">
					错误信息：<textarea type="text" name="ErrorMessage" cols="40" rows="2" wrap="off" class="ali-input"></textarea>
					<button type="submit" class="ali-button">添加</button>
				</form>
				<div class="content">
					<table data-ali-widget="grid" class="grid1">
						<thead>
							<tr>
								<th>类型</th>
								<th>取值</th>
								<th>错误号码</th>
								<th>错误信息</th>
								<th width="60">删除</th>
							</tr>
						</thead>
						<tbody>
							<ali:List ID="List" Object="BlackList" Page="PageNumber" PageSize="PageSizeValue" Validate="True">
								<ali:Record>
									<tr data-id="<%=InnerID%>">
										<td>
											<%If Convert.ToString(Type) == "Domain"%>
												域名
											<%ElseIf Convert.ToString(Type) == "IP"%>
												IP
											<%ElseIf Convert.ToString(Type) == "UserName"%>
												用户名
											<%ElseIf Convert.ToString(Type) == "UserAgent"%>
												用户代理
											<%EndIf%>
										</td>
										<td><%=Value%></td>
										<td><%=ErrorCode%></td>
										<td><%=ErrorMessage%></td>
										<td><a href="" data-operation="Delete" class="ali-button">删除</a></td>
									</tr>
								</ali:Record>
							</ali:List>
						</tbody>
					</table>
					<ali:Pagination Page="PageNumber" PageSize="PageSizeValue" RecordCount="List[RecordCount]">
						<div class="pagination1" data-page-number="<%=PageNumber%>" data-page-count="<%=PageCount%>" data-page-size="<%=PageSize%>">
							<div class="pagination1-left">
								共<b><%=PageCount%></b>页，每页显示
									<select name="PageSize" data-ali-widget="combo">
										<option value="20">20</option>
										<option value="50">50</option>
										<option value="100">100</option>
										<option value="200">200</option>
									</select>条，共<b><%=RecordCount%></b>条记录
							</div>
							<ul class="pagination1-right">
								<ali:FirstPage>
									<ali:Yes>
										<li><span><span class="first disabled">首页</span></span></li>
										<li><span><span class="prev disabled">上一页</span></span></li>
									</ali:Yes>
									<ali:No>
										<li><a href="1"><span class="first">首页</span></a></li>
										<li><a href="<%=PageNumber - 1%>"><span class="prev">上一页</span></a></li>
									</ali:No>
								</ali:FirstPage>
								<ali:CurrentPage Range="5">
									<ali:Yes>
										<li class="active"><span><%=Index%></span></li>
									</ali:Yes>
									<ali:No>
										<li><a href="<%=Index%>"><%=Index%></a></li>
									</ali:No>
								</ali:CurrentPage>
								<ali:LastPage>
									<ali:Yes>
										<li><span><span class="next disabled">下一页</span></span></li>
										<li><span><span class="last disabled">末页</span></span></li>
									</ali:Yes>
									<ali:No>
										<li><a href="<%=PageNumber + 1%>"><span class="next">下一页</span></a></li>
										<li><a href="<%=PageCount%>"><span class="last">末页</span></a></li>
									</ali:No>
								</ali:LastPage>
			
								<li class="go">
									<input type="text" name="PageNumber" value="1" size="4"><button></button>
								</li>
							</ul>
						</div>
					</ali:Pagination>
				</div>
			</div>
		</div>
		<div class="ali-tabs-bottom"><b></b></div>
	</div>
</section>